// pages/orderDetail/orderDetail.js
Page({
  data: {
    //模拟数据
    orderInfo: {
      orderType: 1,
      status: '已使用',
      userInfo: {
        tel: '18888888888',
        name: '张三'
      },
      shopInfo: {
        name: '有间咖啡馆（昆明店）',
        tel: '12345612345',
        startTime: '16:00',
        endTime: '04:00',
        imgUrl: 'https://img01.yzcdn.cn/vant/cat.jpeg',
        address: '商店地址信息商店地址信息商店地址信息商店地址信息'
        //应该还有经纬度，用于导航
      },
      goodArr: [{
        url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
        title: '燕京 精品鲜啤500ml*12瓶 666666',
        desc: '规格规格规格规格',
        sale: '1266',
        count: 1,
        sku: '102',
        sku_unit: '件',
        price: '190.00'
      }, {
        url: 'https://img01.yzcdn.cn/vant/cat.jpeg',
        title: '燕京 精品鲜啤500ml*12瓶 666666',
        desc: '规格规格规格规格',
        sale: '1266',
        count: 1,
        sku: '102',
        sku_unit: '件',
        price: '190.00'
      }, ],
      defaultPrice: '380.00',
      discount: '20.00',
      actualPrice: '360.00',
      orderStatus: {
        no: '7894156246673623',
        payPath: '微信支付',
        actualPrice: '360.00',
        createTime: '2021-05-20 15:03:30',
        checkedTime: '2021-05-20 15:33:30'
      }
    }
  },

  onLoad: function (options) {
    this.setData({
      hoverHeight: getApp().globalData.windowHeight - getApp().globalData.navHeight,
      navHeight: getApp().globalData.navHeight
      //获取订单信息
    })
  },
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})